import './assets/main.css'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'

//设置axios的基础url部分
// axios.defaults.baseURL = 'http://localhost:9090'
//将axios挂载到vue实例上，使用时就可以 this.$axios 这样使用了
// Vue.prototype.$axios = axios
// Vue.prototype.$qs = qs

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)
app.use(ElementPlus, { size: 'default', zIndex: 3000,locale: zhCn })

app.mount('#app')
